﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MarketOnlineBUS;
using MarketOnlineDTO;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadSanPhamMoi();
        LoadThit();
       
    }


    public void LoadSanPhamMoi()
    {
        //List<SanPhamDTO> lst = new List<SanPhamDTO>();
        //lst = new SanPhamBUS().LayDanhSachSanPhamMoi();
        //listProductNew.DataSource = lst;
        //listProductNew.DataBind();
    }


    void LoadThit()
    {
        List<SanPhamDTO> lst = new List<SanPhamDTO>();
        lst = new SanPhamBUS().LaySanPhamTheoLoai(1,10);
        listThit.DataSource = lst;
        listThit.DataBind();
    }

    
}